$OpenBSD: patch-minidlna_c,v 1.4 2015/07/23 16:29:02 sthen Exp $

Fix missing address in location string sent to minissdpd
http://miniupnp.tuxfamily.org/forum/viewtopic.php?p=4413
http://sourceforge.net/p/minidlna/patches/151/

--- minidlna.c.orig	Thu Jul 16 15:44:22 2015
+++ minidlna.c	Thu Jul 16 15:44:58 2015
@@ -1055,6 +1055,7 @@ main(int argc, char **argv)
 	if (sssdp < 0)
 	{
 		DPRINTF(E_INFO, L_GENERAL, "Failed to open socket for receiving SSDP. Trying to use MiniSSDPd\n");
+		reload_ifaces(0);	/* populate lan_addr[0].str */
 		if (SubmitServicesToMiniSSDPD(lan_addr[0].str, runtime_vars.port) < 0)
 			DPRINTF(E_FATAL, L_GENERAL, "Failed to connect to MiniSSDPd. EXITING");
 	}
